package com.teyao.teyao_back.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teyao.teyao_back.entity.Orders;
import com.teyao.teyao_back.entity.ResponseMessage;
import com.teyao.teyao_back.mapper.OrderMapper;
import com.teyao.teyao_back.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Orders> implements OrderService {

    @Autowired
    private OrderMapper mapper;

    public ResponseMessage updateInfo(Orders orders) {
        ResponseMessage message = new ResponseMessage();
        message.setData(mapper.updateInfo(orders));
        message.setSuccess(true);

        return message;
    }



}
